// ============================================================================
//
// LCP-net framework by Pierre CHATEL chatelp@gmail.com
// Distributed under GPLv3
// Copyright (C) THALES Land & Joint Systems, 2008, 2009. All rights reserved
//
// ============================================================================

/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package com.thalesgroup.preferenceFramework.models.LCPnet.fragments;

import com.thalesgroup.preferenceFramework.models.LCPnet.exceptions.LCPnetCombinationException;
import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Fragment</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link com.thalesgroup.preferenceFramework.models.LCPnet.fragments.Fragment#getFragmentName <em>Fragment Name</em>}</li>
 *   <li>{@link com.thalesgroup.preferenceFramework.models.LCPnet.fragments.Fragment#isAntiFragment <em>Anti Fragment</em>}</li>
 * </ul>
 * </p>
 *
 * @see com.thalesgroup.preferenceFramework.models.LCPnet.fragments.FragmentsPackage#getFragment()
 * @model interface="true" abstract="true"
 * @generated
 */
public interface Fragment extends EObject {

	/**
	 * Returns the value of the '<em><b>Fragment Name</b></em>' attribute.
	 * The default value is <code>""</code>.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Fragment Name</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Fragment Name</em>' attribute.
	 * @see #setFragmentName(String)
	 * @see com.thalesgroup.preferenceFramework.models.LCPnet.fragments.FragmentsPackage#getFragment_FragmentName()
	 * @model default=""
	 * @generated
	 */
	String getFragmentName();

	/**
	 * Sets the value of the '{@link com.thalesgroup.preferenceFramework.models.LCPnet.fragments.Fragment#getFragmentName <em>Fragment Name</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Fragment Name</em>' attribute.
	 * @see #getFragmentName()
	 * @generated
	 */
	void setFragmentName(String value);

	/**
	 * Returns the value of the '<em><b>Anti Fragment</b></em>' attribute.
	 * The default value is <code>"false"</code>.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Anti Fragment</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Anti Fragment</em>' attribute.
	 * @see #setAntiFragment(boolean)
	 * @see com.thalesgroup.preferenceFramework.models.LCPnet.fragments.FragmentsPackage#getFragment_AntiFragment()
	 * @model default="false"
	 * @generated
	 */
	boolean isAntiFragment();

	/**
	 * Sets the value of the '{@link com.thalesgroup.preferenceFramework.models.LCPnet.fragments.Fragment#isAntiFragment <em>Anti Fragment</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Anti Fragment</em>' attribute.
	 * @see #isAntiFragment()
	 * @generated
	 */
	void setAntiFragment(boolean value);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model exceptions="com.thalesgroup.preferenceFramework.models.LCPnet.exceptions.LCPnetCombinationException"
	 * @generated
	 */
	void applyFragment(EObject context) throws LCPnetCombinationException;
} // Fragment
